const mongoose = require("mongoose")
const schema = new mongoose.Schema(
  {
    comment: { type: mongoose.Types.ObjectId, ref: "Comment" },
    you: { type: mongoose.Types.ObjectId, ref: "User" },
    youSay: String,
    user: { type: mongoose.Types.ObjectId, ref: "User" },
    content: String,
    date: Number,
  },
  {
    timestamps: true,
  }
)
module.exports = mongoose.model("Message", schema)
